//
//  CYDataAPIEnums.m
//  cyjf
//
//  Created by tauCross on 2017/5/12.
//  Copyright © 2017年 Auto Financing. All rights reserved.
//

#import "CYDataAPIEnums.h"
#import <Foundation/Foundation.h>



NSString *ActivityIconURLPositionStringWithPosition(CYDataAPIActivityIconURLPosition position)
{
    switch(position)
    {
        case CYDataAPIActivityIconURLPositionHome:
            return @"9";
    }
}

NSNumber *SMSCodeTypeStringWithType(CYDataAPISMSCodeType type)
{
    switch(type)
    {
        case CYDataAPISMSCodeTypeSignUp:
            return @1;
        case CYDataAPISMSCodeTypeFindPassword:
            return @2;
        case CYDataAPISMSCodeTypeBindCard:
            return @3;
    }
}

NSNumber *BannerPositionWithPosition(CYDataAPIBannerPosition position)
{
    switch(position)
    {
        case CYDataAPIBannerPositionHome:
            return @3;
    }
}

NSNumber *PayWayWithPayWay(CYDataAPIPayWay payWay)
{
    switch(payWay)
    {
        case CYDataAPIPayWayBaoFu:
            return @4;
    }
}

NSNumber *WalletDetailTypeWithType(CYDataAPIWalletDetailType type)
{
    switch(type)
    {
        case CYDataAPIWalletDetailTypeIn:
            return @1;
        case CYDataAPIWalletDetailTypeOut:
            return @2;
    }
}

NSNumber *InvestRecordStatusWithStatus(CYDataAPIInvestRecordStatus status)
{
    switch(status)
    {
        case CYDataAPIInvestRecordStatusNormal:
            return @1;
        case CYDataAPIInvestRecordStatusComplete:
            return @2;
    }
}

NSNumber *AdvertisementPositionWithPosition(CYDataAPIAdvertisementPosition position)
{
    switch(position)
    {
        case CYDataAPIAdvertisementPositionLaunch:
            return @2;
        case CYDataAPIAdvertisementPositionPopup:
            return @4;
        case CYDataAPIAdvertisementPositionHomeItem:
            return @5;
        case CYDataAPIAdvertisementPositionDiscoverCull:
            return @7;
        case CYDataAPIAdvertisementPositionSuspend:
            return @6;
    }
}

NSNumber *CouponStatusWithStatus(CYDataAPICouponStatus status)
{
    switch(status)
    {
        case CYDataAPICouponStatusAvailable:
            return @1;
        case CYDataAPICouponStatusUsed:
            return @2;
        case CYDataAPICouponStatusDisable:
            return @3;
    }
}

NSNumber *MessageTypeWithType(CYDataAPIMessageType type)
{
    switch(type)
    {
        case CYDataAPIMessageTypePerson:
            return @1;
        case CYDataAPIMessageTypePublic:
            return @2;
    }
}

